/*
 * TestTheServer.java
 *
 * Created on November 27, 2006, 9:38 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package org.uilabs.server;

import com.caucho.hessian.client.HessianProxyFactory;

/**
 *
 * @author Bill
 */
public class TestTheServer {
    
    /** Creates a new instance of TestTheServer */
    public TestTheServer() {
    }
    
    public static void main(String[] args) throws Exception {
        String url = "http://localhost:9990/services/uilabs";
        
        HessianProxyFactory factory = new HessianProxyFactory();
        IMonitorService monitor = 
                (IMonitorService) factory.create(IMonitorService.class, url);
        
        System.out.println("status: " + monitor.getStatus());
    }
}
